# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtables-addons
pkgver=3.20
pkgrel=0
pkgdesc="Netfilter userspace extensions for iptables"
url="https://inai.de/projects/xtables-addons/"
arch="all"
license="GPL-2.0-only"
makedepends="iptables-dev bash coreutils"
subpackages="$pkgname-doc"
source="https://inai.de/files/xtables-addons/xtables-addons-$pkgver.tar.xz"
options="!check" # Package has no test suite

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-kbuild
	make CC="${CC-gcc}" kbuilddir=
}

package() {
	make builddir= DESTDIR="$pkgdir" install
}

sha512sums="
0a38c12159dd555a31f24dc5a74d012b27723925df827edffe2343f6b8e61e838b5dc4776bafe37587e9622b9da1e9cd4220e4f576d58e78eb21ad18a419fb2e  xtables-addons-3.20.tar.xz
"
